package com.qdy.repository;

import com.qdy.entity.Course;
import com.qdy.entity.user.User;
import org.springframework.data.jpa.repository.JpaRepository;
import org.springframework.data.jpa.repository.Query;

import java.util.List;

/**
 * Created by qudingyi on 2017/4/26.
 */
public interface CourseRepository extends JpaRepository<Course,Long> {
        List<Course> findByUserNotNullOrderByCreateTimeDesc();
        List<Course> findByVenueNotNullOrderByCreateTimeDesc();
}
